from google.appengine.ext import db

class PredictionModel(db.Model):
  name = db.StringProperty(required=True)
  owner = db.UserProperty()
  public = db.BooleanProperty(required=True, default=False)
  categories = db.StringListProperty()

  category_tuples = property(lambda self: enumerate(self.categories))
